var adRWidth = 120;
var adLWidth = 1003;

function FloatTopDiv() {
	startX2 = document.body.clientWidth - adLWidth, startY2 = 0;
	var ns2 = (navigator.appName.indexOf("Netscape") != -1);
	var d2 = document;

	if (document.body.clientWidth < 980)
		startX2 = -adLWidth;

	function ml2(id) {
		var el2 = d2.getElementById ? d2.getElementById(id)
				: d2.all ? d2.all[id] : d2.layers[id];
		if (d2.layers)
			el2.style = el2;
		el2.sP = function(x, y) {
			this.style.left = x;
			this.style.top = y;
		};
		el2.x = startX2;
		el2.y = startY2;
		return el2;
	}

	window.stayTopLeft = function() {
		if (document.body.clientWidth < 980) {
			ftlObj2.x = -115;
			ftlObj2.y = 0;
			ftlObj2.sP(ftlObj2.x, ftlObj2.y);
		} else {
			if (document.documentElement && document.documentElement.scrollTop)
				var pY2 = ns2 ? pageYOffset
						: document.documentElement.scrollTop;
			else if (document.body)
				var pY2 = ns2 ? pageYOffset : document.body.scrollTop;

			if (document.body.scrollTop > 2) {
				startY2 = 0
			} else {
				startY2 = 0
			}
			;

			if (document.body.clientWidth >= 1024) {
				ftlObj2.x = 0;
				ftlObj2.y += (pY2 + startY2 - ftlObj2.y) / 8;
				ftlObj2.sP(ftlObj2.x, ftlObj2.y);
			} else {

				ftlObj2.x = startX2;
				ftlObj2.y += (pY2 + startY2 - ftlObj2.y) / 8;
				ftlObj2.sP(ftlObj2.x, ftlObj2.y);
			}
		}
		setTimeout("stayTopLeft()", 1);
	}

	ftlObj2 = ml2("divAdLeft");
	stayTopLeft();

}

function ShowAdDiv() {	
	var objAdDivLeft = document.getElementById("divAdLeft");
	objAdDivLeft.style.display = "block"	
	if (document.body.clientWidth < 980) {
		objAdDivLeft.style.left = -adLWidth;
	} else {
		objAdDivLeft.style.left = 0;		
	}	
	FloatTopDiv();
}
